import request from '@/utils/request'

// 查询状态统计
export function getStatus() {
  return request({
    url: '/operator/station/getStatus',
    method: 'get'
  })
}

// 查询场站列表
export function listStation(query) {
  return request({
    url: '/operator/station/list',
    method: 'get',
    params: query
  })
}

// 查询场站详细
export function getStation(chargeStationId) {
  return request({
    url: '/operator/station/' + chargeStationId,
    method: 'get'
  })
}

// 新增场站
export function addStation(data) {
  return request({
    url: '/operator/station',
    method: 'post',
    data: data
  })
}

// 修改场站
export function updateStation(data) {
  return request({
    url: '/operator/station',
    method: 'put',
    data: data
  })
}

// 删除场站
export function delStation(chargeStationId) {
  return request({
    url: '/operator/station/' + chargeStationId,
    method: 'delete'
  })
}

// 导出场站
export function exportStation(query) {
  return request({
    url: '/operator/station/export',
    method: 'get',
    params: query
  })
}
